local joy__kuangxi = fk.CreateSkill {

  name = "joy__kuangxi",

  tags = { Skill.Compulsory, },

}



joy__kuangxi:addEffect(fk.DamageCaused, {
  name = "joy__kuangxi",
  anim_type = "offensive",
  frequency = Skill.Compulsory,
  events = {fk.DamageCaused},
  can_trigger = function(self, event, target, player, data)
    return player:hasSkill(joy__kuangxi.name) and target == player and
    table.find(player.room.alive_players, function (p) return p:getMark("@@joy__secure") > 0 end)
  end,
  on_use = function(self, event, target, player, data)
    data.damage = data.damage + 1
  end,
})

return joy__kuangxi